import Vue from 'vue';
import VueRouter from 'vue-router';
import axios from '@/util/axios';
import VueAxios from 'vue-axios';

import Element from 'element-ui';
import 'normalize.css'

import 'normalize.css';
import '@/assets/scss/base.scss';
import { IeRouter } from '@/util/polyfill';

import user from '@/component/user/index.vue';
import { router } from "@/router/user";
import { store } from '@/store/user'

store.commit('setUserForInit');

Vue.use(Element);
Vue.use(VueRouter);
Vue.use(VueAxios, axios);

export const vue: Vue = new Vue({
  el: '#app',
  router,
  store,
  render: function (createElement) {
    IeRouter.call(this)
    return createElement(user)
  }
})